import Layout from '@/layout'

export default {
  path: '/repair/',
  component: Layout,
  children: [
    {
      path: 'info/:id',
      name: 'repairRequestInfo',
      component: () => import('@/views/repair/info'),
      meta: { title: '报修单信息' },
      hidden: true,
      props: true
    },
    {
      path: 'wait',
      name: 'repairWait',
      component: () => import('@/views/repair/my'),
      meta: { title: '待处理报修单' }
    },
    {
      path: 'underway',
      name: 'repairUnderway',
      component: () => import('@/views/repair/my'),
      meta: { title: '进行中报修单' }
    },
    {
      path: 'complete',
      name: 'repairComplete',
      component: () => import('@/views/repair/my'),
      meta: { title: '维修完成报修单' }
    },
    {
      path: 'all',
      name: 'repairAll',
      component: () => import('@/views/repair/my'),
      meta: { title: '所有报修单' }
    }
  ],
  meta: { title: '我的报修单' }
}
